/**
 * Created by dllo on 18/3/31.
 */
public class Test所有水仙花数 {
    public static void main(String[] args) {

        for (int abc=100;abc<1000;abc++){
            int a=abc/100;//求出百位数a
            int b=abc%100/10;//求出十位数b
            int c=abc%100%10;//求出个位数c
            if(abc==a*a*a+b*b*b+c*c*c){
                System.out.println(abc+"是水仙花数");
            }
        }
    }
}
